/**
 * 项目示例-列表综合搜索
 * Date 2023-5-25 09:33:56
 * {
 *   label: '', 筛选项名称
 *   prop: '', 筛选项字段
 *   type: '', 组件类型（'input' | 'select' | 'inputNumber' | 'cascader' | 'datePicker' | 'timePicker' | 'timeSelect' | 'treeSelect' | 'checkbox' | 'radio'）
 *   defaultValue: '', 筛选项默认值（不写默认undefined）
 *   inputProps: {}, 过滤组件属性，跟`ElementPlus`对应组件的`#Attributes`相同
 *   events: {} 仅支持change事件
 * }
 */
import type { FilterItem } from "@/components/FilterBar/types";
import handleValidate from "../index.vue";
export const greyListDialogOptions: FilterItem[] = [
  {
    label: "姓名：",
    prop: "name",
    type: "input",
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: "请输入姓名",
    },
  },
  {
    label: "年龄：",
    prop: "age",
    type: "input",
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: "请输入年龄",
      controls: false,
    },
  },
  {
    label: "性别：",
    prop: "sex",
    type: "select",
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: "请输入性别",
      options: [
        { label: "男", value: "男" },
        { label: "女", value: "女" },
      ],
    },
  },
  {
    label: "身份证号：",
    prop: "idCard",
    type: "input",
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: "请输入身份证号",
    },
  },
  {
    label: "人脸信息：",
    prop: "faceInfo",
    type: "upload",
    span: 24,
    inputProps: {},
    events: {
      onChange: (value: any, evt: any) => {},
    },
  },
];
export const greyListOptions: FilterItem[] = [
  {
    label: "姓名",
    prop: "name",
    type: "input",
    span: 8,
    inputProps: {
      clearable: true,
      placeholder: "请输入姓名",
    },
  },
  {
    label: "身份证号",
    prop: "idCard",
    type: "input",
    span: 12,
    inputProps: {
      clearable: true,
      placeholder: "请输入身份证号",
    },
  },
  {
    label: "录入时间",
    prop: "date",
    type: "datePicker",
    span: 12,
    defaultValue: [],
    inputProps: {
      type: "datetimerange",
      format: "YYYY-MM-DD HH:mm",
      "start-placeholder": "开始时间",
      "end-placeholder": "结束时间",
      "range-separator": "至",
      defaultTime: [
        new Date(2000, 1, 1, 0, 0, 0),
        new Date(2000, 2, 1, 23, 59, 59),
      ],
      "value-format": "YYYY-MM-DD HH:mm:ssZ",
    },
  },
];
